package day02;

public class prime2 {
   public static void main(String[] args) {
	   int n;
	   int count=0;
	for(n=2;n<101;n++)
	{
		int i;
			for (i = 2; i < n; i++) 
			{
				if (n % i == 0)
					break;
			}
			if(i>=n) {
				System.out.print(n+" ");
				count++;
			}
			
	}
	System.out.println("总数："+count);
}
}
